package com.midou.administration.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.midou.administration.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */

public interface UsersMapper extends BaseMapper<Users> {

    //小程序 网站登录
    Users login(@Param("name") String name);

    //进行注册判断账号是否重复
    Integer repetition(@Param("userCode") String code);


    //显示商家对应的会员
     List<Users> userMember(@Param("page") Page page,
                            @Param("userBusinessId") Integer userBusinessId,
                            @Param("phone")String phone);

     //<!--    查询会员优惠额度-->
    Users jsjg(@Param("phone")String phone);



}
